chrome.runtime.onMessage.addListener(async (message, sender, sendResponse) => {
    if (message.action === 'fromPopup') {
        chrome.notifications.create(
            {
                type: "basic",
                title: "Notifications Title",
                message: "Notifications message to display",
                iconUrl: "../icons/icon.png"
            },
            (notificationId) => {
                console.log('notificationId-->', notificationId)
            }
        );
    }
    if (message.action === 'fromContent') {
        chrome.notifications.create(
            {
                type: "basic",
                title: "Notifications Title",
                message: "Notifications message to display",
                iconUrl: "../icons/icon.png"
            },
            (notificationId) => {
                console.log('notificationId-->', notificationId)
            }
        );
    }
});